//LiuZh 2017-06-29
import React, { Component } from 'react';

import {
  View,
  Image,
  Text,
  StyleSheet,
  ListView,
  Dimensions
} from 'react-native';

let jpBg      = require('shequnsiweiapp/src/img/JpBg.png');
let winWidth  = Dimensions.get('window').width;//屏幕宽度


export default class JpListScene extends Component{


  constructor(props){
    super(props);
    // alert(this.props.navigation.state.params.data.zhongjiangxinxi);//在这里取用户中奖的列表
    this.state = {
      data: new ListView.DataSource({rowHasChanged: (r1,r2) => r1!==r2 }).cloneWithRows({a:1,b:2}),
    };
  }

	render() {
		return (
			<ListView
          style = {{ flex: 1, }}
          dataSource = { this.state.data }
          renderRow = { (rowData) => this.renderRow(rowData) }>
       </ListView>
	)}

	renderRow(rowData) {
		return (
			<View stye={{flex:1,justifyContent:'center',alignItems:'center'}}>
				<Image source={jpBg}
					resizeMode={'contain'}
					style={{width: winWidth-14,height: 24 * (winWidth-14) / 71,marginTop: 15,marginLeft:7,marginRight:7}}>
				</Image>
			</View>
	)}

}